package com.evil.application.pojo.dto.order.node;

import com.evil.common.account.dto.user.UserEnterpriseDTO;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * 新增订单节点
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
public class AddOrderNodeBaseReqDTO {

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    /**
     * 节点id
     */
    @NotNull(message = "节点id不能为空")
    private Long nodeId;

    /**
     * 处理类型
     */
    @NotNull(message = "处理类型不能为空")
    private Integer handleType;

    /**
     * 处理人
     */
    @NotEmpty(message = "处理人不能为空")
    private Map<String, List<UserEnterpriseDTO>> groupAssignees;
}
